package com.wanmait.wisdom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.wisdom.entity.Unit;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

import java.util.List;

/**
* Created by Mybatis Generator 2024/04/02
*/
@Mapper
public interface UnitMapper extends BaseMapper<Unit> {
    int deleteByPrimaryKey(Integer id);

    int insert(Unit record);

    int insertSelective(Unit record);

    Unit selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Unit record);

    int updateByPrimaryKey(Unit record);

    List<String> findUnitNumberOptions();

    List<Unit> selectUnitByBuildingId(Integer id);
}
